package cn.basic.org.mapper;

import cn.basic.auth.domain.Role;
import cn.basic.org.domain.Employee;
import cn.basic.common.mapper.BaseMapper;
import cn.basic.org.vo.result.EmployeeVo;
import cn.basic.org.vo.query.EmployeeQuery;
import org.apache.ibatis.annotations.Mapper;

import java.io.Serializable;
import java.util.List;

/**
 * @description:  Mapper接口
 * @author: ZhaoLc
 * @date: 2023-03-27
 * @version: 1.0
 */
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee,EmployeeQuery,EmployeeVo> {


    Employee loadByUserName(String username);

    void grantedRoles(List<Role> ids, Long employeeId);

    List<Long> loadRoleById(Serializable id);

    void deleteRolesById(Long employeeId);
}
